import {ListDetailPageStackSlicinationStore} from "./ListDetailSliceStackStore";
import {OrderResponse, OrderSummary} from "../apis/OrderApi";


const digitalOrderPageStackStore = new ListDetailPageStackSlicinationStore<OrderSummary, OrderResponse, number>(
    detail => ({
        id: detail.id,
        brand: detail.brand,
        category: detail.category,
        paymentDateTime: detail.paymentDateTime,
        name: detail.name,
        model: detail.model,
    }),
    item => item.id,
    detail => detail.id
)

export default digitalOrderPageStackStore